<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Ramda</title>
</head>
<body>
    <script src="../ramda.min.js"></script>
    <script>
        function isEven(n) {
            return n % 2 === 0;
        }
        var data = { a: 1, b: 2, c: 3, d: 4 };
        // var addIndex = R.addIndex(R.filter);
        // var res = addIndex(isEven, data);
        var res = R.filter(isEven, data);
        console.log(res);
    </script>
</body>
</html>